﻿using System;
using System.Collections.Generic;
using System.Web;
using FiveSister.DAL;

namespace FiveSister.BAL
{

    /// <summary>
    /// Summary description for User
    /// </summary>
    public class User : BaseBAL
    {
        CUserFacade facade = new CUserFacade();

        public int uerId;
        public int groupUserId;
        public string userName;
        public string password;
        public bool isActive;

        public int UserId { get { return uerId; } set { uerId = value; } }
        public int GroupUserId { get { return groupUserId; } set { groupUserId = value; } }
        public string UserName { get { return userName; } set { userName = value; } }
        public string Password { get { return password; } set { password = value; } }
        public bool IsActive { get { return isActive; } set { isActive = value; } }

        public User SelectUser(string userName, int userId)
        {
            return facade.SelectUser(userName, userId);
        }
        public IList<User> AllUser()
        {
            return facade.AllUser();
        }
        public bool ValidateUser(string username, string password)
        {
            return facade.ValidateUser(username, password);
        }

    }
}